#!/usr/bin/env python
# -*- coding: utf-8 -*-

'''eof
name:申请企业是否存在行内非正常贷款
code:CQB_CreOverdue
tableName:
columnName:
groups:企业通用
dependencies:IC_DSJ_2D
type:常用指标
dataSourceType:在线指标
description:
eof'''

import sys

reload(sys)
sys.setdefaultencoding('utf-8')


def ecOverdueday():
    try:
        x = ratingRequest.get('ecOverdueday')
        null_type_list = ['', None, 'null', 'Null', '/', ' ']
        if x not in null_type_list:
            return float(x)
        else:
            return u'缺失值'
    except:
        return u'缺失值'

result = ecOverdueday()
